




/*
*************************************************************************
*西瑞克斯研发管理系统
*版 本: 1.0   
*日 期：02/08/2012    
*作 者： 王浩 QQ：873987060   
*************************************************************************   
*/ 
package com.application.summary2moon.service;
import java.util.List;
import com.manager.BaseService;
import com.manager.commons.page.PageBean;
import com.application.summary2moon.entity.Summary2moon;
import com.application.summary2moon.struts.form.Summary2moonForm;
import com.application.summary2moon.dao.Summary2moonDAO;
 /**
 * 
 * Description:Summary2moonService<br />
 * 
 * Version:V0.1<br />
 * 
 * Author: 左磊 QQ：30575951    <br />
 * 
 * History: <br />
 * 
 * 02/08/2012 
 * 
 */
public class Summary2moonService extends BaseService
{
	private Summary2moonDAO summary2moonDAO;

	public Summary2moonDAO getSummary2moonDAO() {
		return this.summary2moonDAO;
	}

	public void setSummary2moonDAO(Summary2moonDAO summary2moonDAO) {
		this.summary2moonDAO = summary2moonDAO;
	}
        

        public Summary2moon getSummary2moon(Summary2moon summary2moon) {
		return (Summary2moon) this.getBaseDao().queryByPk(summary2moon, summary2moon.getId());
	}
	
	public Integer getAllCountSummary2moon(Summary2moonForm summary2moonForm){
		return this.summary2moonDAO.getAllCountSummary2moon(summary2moonForm);
	}
	
	public List<Summary2moon> searchSummary2moon(Summary2moonForm summary2moonForm, PageBean pageBean) throws Exception {
		List<Summary2moon> summary2moonList = (List) this.summary2moonDAO.searchSummary2moon(summary2moonForm, pageBean);
		return summary2moonList;
	}
        
        public void deleteSummary2moons(Summary2moonForm summary2moonForm){
	   this.summary2moonDAO.deleteSummary2moons(summary2moonForm);	 
	}
        public List searchSummary2moon(final Summary2moonForm summary2moonForm) {
    		List<Summary2moon> summary2moonList = (List) this.summary2moonDAO.searchSummary2moon(summary2moonForm);
    		return summary2moonList;
    	}
}
